package wx.wxpsringboot.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * <p>
 * 
 * </p>
 *
 * @author 廖柏曦
 * @since 2022-02-26
 */
@Getter
@Setter
@TableName("commodity")
@ApiModel(value = "Commodity对象", description = "")
public class Commodity implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("唯一标识")
    @TableField("id")
    private Long id;

    @ApiModelProperty("商品名字")
    @TableField("commodity_name")
    private String commodityName;

    @ApiModelProperty("原价")
    @TableField("original_price")
    private Integer originalPrice;

    @ApiModelProperty("现价")
    @TableField("current_price")
    private Integer currentPrice;

    @ApiModelProperty("商品描述")
    @TableField("described")
    private String described;

    @ApiModelProperty("库存量")
    @TableField("inventory")
    private Integer inventory;

    @ApiModelProperty("销售量")
    @TableField("sales_volume")
    private Integer salesVolume;

    @ApiModelProperty("逻辑删除")
    @TableField("deleted")
    @TableLogic
    private Integer deleted;

    @ApiModelProperty("创建时间")
    @TableField("create_time")
    private LocalDateTime createTime;

    @ApiModelProperty("更新时间")
    @TableField("update_time")
    private LocalDateTime updateTime;


}
